package com.wheelpicker.picker;

import com.wheelpicker.base.BasePickerConfig;
import com.jincp.common.dialog.BaseDialogBuilder;
import com.jincp.common.dialog.BaseDialogFragment;

/**
 * Created by jcp on 2017/6/15.
 */

public abstract class BasePickDialogBuild<C extends  BasePickerConfig,B extends BaseDialogBuilder, D extends BaseDialogFragment> extends BaseDialogBuilder<B, D> {

    public C mPickerConfig;

    public BasePickDialogBuild setThemeColor(int color) {
        mPickerConfig.mThemeColor = color;
        return this;
    }

    public BasePickDialogBuild setCancelStringId(String left) {
        mPickerConfig.mCancelString = left;
        return this;
    }

    public BasePickDialogBuild setSureStringId(String right) {
        mPickerConfig.mSureString = right;
        return this;
    }

    public BasePickDialogBuild setTitleStringId(String title) {
        mPickerConfig.mTitleString = title;
        return this;
    }

    public BasePickDialogBuild setToolBarTextColor(int color) {
        mPickerConfig.mToolBarTVColor = color;
        return this;
    }

    public BasePickDialogBuild setWheelItemTextNormalColor(int color) {
        mPickerConfig.mWheelTVNormalColor = color;
        return this;
    }

    public BasePickDialogBuild setWheelItemTextSelectorColor(int color) {
        mPickerConfig.mWheelTVSelectorColor = color;
        return this;
    }

    public BasePickDialogBuild setWheelItemTextSize(int size) {
        mPickerConfig.mWheelTVSize = size;
        return this;
    }

    public BasePickDialogBuild setCyclic(boolean cyclic) {
        mPickerConfig.cyclic = cyclic;
        return this;
    }
}
